package com.cnswhy.cloud.server.core.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;
import static com.cnswhy.cloud.common.core.utils.DateUtils.DEFAULT_DATE_TIME_FORMAT;

/**
 * <p>
 * 实体类
 * 商品详情表
 * </p>
 *
 * @author cnswhy
 * @since 2020-11-10
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_shop_product")
@ApiModel(value = "ShopProduct", description = "商品详情表")
@AllArgsConstructor
public class ShopProductDetail extends ShopProduct{
    private static final long serialVersionUID = -4772012059730646119L;
    private String classifyName;
    private String classifyParentName;
    private String brandName;
    private BigDecimal price;
    private BigDecimal costPrice;
    private Integer stock;
    private String merchantName;
    private String title;
    private String h5Url;
    private List<ShopProductGallery> shopProductGalleryList;
    private List<ShopProductSpec> shopProductSpecList;
    private List<ShopProductStock> shopProductStockList;

}
